package com.alex.wechat.component.message.service;

import java.io.Serializable;

import org.jeecgframework.core.common.service.CommonService;

import com.alex.wechat.component.message.entity.WxAppMsgTemplateEntity;

public interface WxAppMsgTemplateServiceI extends CommonService {

  public void delete(WxAppMsgTemplateEntity entity) throws Exception;

  public Serializable save(WxAppMsgTemplateEntity entity) throws Exception;

  public void saveOrUpdate(WxAppMsgTemplateEntity entity) throws Exception;

  /**
   * 
   * 根据模板用途及小程序id查询小程序模板
   * 
   * @param appId
   * @param giftcardAssign
   * @return
   */
  public WxAppMsgTemplateEntity getMsgTemplate(String appId, String giftcardAssign);

}
